package com.ccit.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import java.util.Date;


import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("资金")
@TableName("money")
public class Money {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "种类id")
    @TableField("money_type")
    private String   moneyType;

    @ApiModelProperty(value = "种类名称")
    @TableField("type_name")
    private String  typeName;

    @ApiModelProperty(value = "时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//出参
    @TableField("time")
    private Date time;

    @ApiModelProperty(value = "资金量")
    @TableField("amout")
    private double amout;

    @TableLogic//逻辑删除注解
    @ApiModelProperty(value = "商品逻辑删除(下架),1 已删除  0 未删除")
    @TableField("deleted")
    @JsonIgnoreProperties
    private Integer deleted;
}
